What is a record and how you can define records in Erlang?
2077
27-Jun-2015
Updated on 16-Sep-2020
Anonymous User
27-Jun-2015For storing a fixed number of elements, a data structure is used which is referred as record. Expressions are translated into tuple expressions during compilation record.
Record in Erlang is defined by the name of the record, followed by the field names of the record. Record and field names must be atoms.
• record (Name, { Field1 [= Value] , … FieldN [= ValueN] } )